home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Just Call Me Internet
/
Just Call Me Internet.iso
/
prog
/
atari
/
c
/
du_lib
/
xacc2
/
simple.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-09-14
|
1KB
|
54 lines
/* ein minimales XACC-Programm sieht nun in etwa so aus:
#include <aes.h>
#include "xacc.h"
short quit;
main()
{
const char name[] = "mein Programm";
short event, msgbuf[8];
appl_init();
xacc_init( -1, name, sizeof( name ), 0x0000 );
for ( quit = FALSE; !quit ; ) {
event = evnt_multi( MU_MESAG, ..., msgbuf, ... );
if ( event & MU_MESAG ) {
if ( !xacc_message( msgbuf ) ) switch ( msgbuf[0] ) {
...
}
}
}
xacc_exit();
appl_exit();
return 0;
}
*/
/* und ein minimales XACC-Accessory in etwa so:
#include <aes.h>
#include "xacc.h"
void main( void )
{
const char name[] = "mein Accessory";
short menu_id, event, msgbuf[8];
menu_id = menu_register( appl_init(), " mein ACC" );
xacc_init( menu_id, name, sizeof( name ), 0x0000 );
for (;;) {
event = evnt_multi( MU_MESAG, ..., msgbuf, ... );
if ( event & MU_MESAG ) {
if ( !xacc_message( msgbuf ) ) switch ( msgbuf[0] ) {
case AC_OPEN:
...
break;
...
}
}
}
}
*/